import request from '@/utils/request';


//用户密码登录
export async function fakeLoginByPassword(data) {
  return request('/auth/loginByPassword', {
    method: 'post',
    data,
  });
}


//用户验证码登录
export async function fakeLoginByVerification(data) {
  return request('/auth/loginByVerification', {
    method: 'post',
    data,
  });
}

//用户退出登录
export async function fakeLoginOut(data) {
  return request('/auth/loginOut', {
    method: 'post',
    data,
  });
}

//用户重置密码
export async function fakeResetPassword(data) {
  return request('/auth/resetPassword', {
    method: 'post',
    data,
  });
}


//用户重置密码
export async function fetchListLoginAdminAccess(params) {
  return request('/auth/listLoginAdminAccess', {
    params,
  });
}
//后台发送短信
export async function fakeSendSmsCodeBack(data) {
  return request('/common/sms/sendSmsCodeBack', {
    method: 'post',
    data,
  });
}


